import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import app from './modules/app'
import settings from './modules/settings'
import user from './modules/user'
import order from './modules/order'
import agent from './modules/agent'
import activity from './modules/activity'
import tagsView from '@/store/modules/tagsView'
import SettingEnv from '@/setting.env'

Vue.use(Vuex)

const store = new Vuex.Store({
  state: {
    routers: SettingEnv.customRouter
  },
  modules: {
    app,
    settings,
    user,
    order,
    agent,
    tagsView,
    activity
  },
  getters
})

export default store
